package nc.impl.dm.m4804.rule;

 import nc.bs.scmpub.app.flow.billcode.BillCodeInfoBuilder;
 import nc.impl.pubapp.bill.billcode.BillCodeInfo;
 import nc.impl.pubapp.bill.billcode.BillCodeUtils;

 import nc.impl.pubapp.pattern.rule.IRule;
 import nc.vo.dm.m4804.entity.DelivBillAggVO;
 import nc.vo.pubapp.pattern.model.entity.bill.IBill;
 import nc.vo.scmpub.res.billtype.DMBillType;
 import nc.impl.pubapp.pattern.database.DataAccessUtils;

 import java.sql.Connection;
 import java.sql.ResultSet;
 import java.sql.SQLException;
 import java.sql.Statement;
 import java.util.HashMap;
 import java.util.Map;
 import nc.pub.billcode.vo.BillCodeContext;
 import java.util.HashSet;
 import java.util.Set;
 import nc.vo.pubapp.pattern.pub.PubAppTool;
 import nccloud.commons.lang.StringUtils;
 import nc.vo.pubapp.pattern.pub.SqlBuilder;
 
 
 
 
 
 
 
 
 
 
 public class CheckUnique implements IRule<DelivBillAggVO> {
	 
	 private String orgflag = "o";
	 
	 
   public void process(DelivBillAggVO[] vos) {
     BillCodeInfo info = BillCodeInfoBuilder.buildBillCodeInfo(DMBillType.DelivBill.getCode(), "vbillcode", "pk_group", "pk_org", "vtrantypecode");
 
 
     BillCodeUtils util = new BillCodeUtils(info);
     util.checkUnique((IBill[])vos);
   }
 }

